def function_out(num):
    # num 保存的是login（对象）
    def function_in(a1):
        print("---开始验证----,a1= %d" % a1)
        # print("num = ", num)

        return num(a1)
        # login(a1)
    return function_in


# ret = function_out(10)
# ret()
@function_out
# login = function_out(login)
def login(a):
    print("----开始登录----,a= %d " % a)
    return a+2


# login = function_out(login)
print(login(10))